import ajaxInit from "./ajaxInit";
const ALL_API = {

    // get_member_info(restfulArgs){
    //     return {
    //         url: `/api/membercenter/get/member/${restfulArgs.info}`,
    //         method: "get",
    //         data:{
    //
    //         }
    //     }
    // },
    //
    // get_member_info2(){
    //     return {
    //         url: `/api/membercenter/get/member/info`,
    //         method: "get",
    //         data:{
    //
    //         }
    //     }
    // },
    //
    // api_sampling_detail() {
    //     return {
    //             url: `/api/sampling/detail`,
    //             method: "post",
    //             data:{
    //                 //定义提交json，默认FormData模式
    //                 dataType:'json',
    //             }
    //         }
    // },
    //
    addStudent() {
        return {
            url: '/userCenter/userService/addStudent',
            method: "post",
            data: {}
        }
    },

    getStudent() {
        return {
            url: '/userCenter/userService/getStudent',
            method: "post",
            data: {}
        }
    },


    delStudent() {
        return {
            url: '/userCenter/userService/delStudent',
            method: "post",
            data: {}
        }
    },

    getTeacher() {
        return {
            url: '/userCenter/userService/getTeacher',
            method: 'post',
            data: {}
        }
    },

    addTeacher() {
        return {
            url: '/userCenter/userService/addTeacher',
            method: 'post',
            data: {}
        }
    },

    updateTeacher() {
        return {
            url: '/userCenter/userService/updateTeacher',
            method: 'post',
            data: {}
        }
    },

    delTeacher() {
        return {
            url: '/userCenter/userService/delTeacher',
            method: 'post',
            data: {}
        }
    },
    //获取题库
    getQuizBanks() {
        return {
            url: '/userCenter/quizService/getQuizBanks',
            method: "post",
            data: {}
        }
    },

    //新增二级题库
    addQuizBank() {
        return {
            url: '/userCenter/quizService/addQuizBank',
            method: "post",
            data: {}
        }
    },

    //移除题库
    delQuizBank() {
        return {
            url: '/userCenter/quizService/delQuizBank',
            method: "post",
            data: {}
        }
    },

    //获取试题列表(不包含具体选项)
    getQuizList() {
        return {
            url: '/userCenter/quizService/getQuizList',
            method: "post",
            data: {}
        }
    },

    //移动试题列表到其他题库
    moveQuiz() {
        return {
            url: '/userCenter/quizService/moveQuiz',
            method: "post",
            data:{
                // dataType:'json'
            }
        }
    },

    //新增试题
    addQuiz(){
        return {
            url: '/userCenter/quizService/addQuiz',
            method: "post",
            data:{
                // dataType:'json'
            }
        }
    },

    //编辑试题
    updateQuiz(){
        return {
            url: '/userCenter/quizService/updateQuiz',
            method: "post",
            data:{}
        }
    },

    //删除试题
    delQuiz(){
        return {
            url: '/userCenter/quizService/delQuiz',
            method: "post",
            data:{
                // dataType:'json'
            }
        }
    },

    //获取指定试题详细信息
    getQuizInfo(){
        return {
            url: '/userCenter/quizService/getQuizInfo',
            method: "post",
            data:{
                // dataType:'json'
            }
        }
    },



    // 添加课程类型
    addCourseType() {
        return {
            url: '/userCenter/courseService/addCourseType',
            method: 'post',
            data: {}
        }
    },

    // 更新课程类型
    updateCourseType() {
        return {
            url: '/userCenter/courseService/updateCourseType',
            method: 'post',
            data: {}
        }
    },

    // 获取课程类型列表
    getCourseTypeList() {
        return {
            url: '/userCenter/courseService/getCourseTypes',
            method: 'post',
            data: {}
        }
    },

    // 删除课程类型
    delCourseType() {
        return {
            url: '/userCenter/courseService/delCourseType',
            method: 'post',
            data: {}
        }
    },

    // 获取供应商userCenter/organService/getOrgan
    getOrgan() {
        return {
            url: '/userCenter/organService/getOrgan',
            method: 'post',
            data: {}
        }
    },
    // 删除供应商 userCenter/organService/delOrgan
    delOrgan() {
        return {
            url: '/userCenter/organService/delOrgan',
            method: 'post',
            data: {}
        }
    },
    //新增课程 userCenter/courseService/addCourse
    addCourse() {
        return {
            url: '/userCenter/courseService/addCourse',
            method: 'post',
            data: {}
        }
    },
    // 获取课程列表 userCenter/courseService/getCourse
    getCourse() {
        return {
            url: '/userCenter/courseService/getCourse',
            method: 'post',
            data: {}
        }
    },
    // 添加资源 userCenter/courseService/addResource
    addResource() {
        return {
            url: '/userCenter/courseService/addResource',
            method: 'post',
            data: {}
        }
    },
    // 添加供应商 userCenter/organService/addOrgan
    addOrgan() {
        return {
            url: '/userCenter/organService/addOrgan',
            method: 'post',
            data: {}
        }
    },

    // 批量绑定用户到课程
    addUsers2Course() {
        return {
            url: '/userCenter/courseService/addUsers2Course',
            method: 'post',
            data: {}
        }
    },

    // 从课程中删除用户
    delUsersFromCourse() {
        return {
            url: '/userCenter/courseService/delUsersFromCourse',
            method: 'post',
            data: {}
        }
    },
    
    // 删除课程userCenter/courseService/delCourse
    delCourse() {
        return {
            url: '/userCenter/courseService/delCourse',
            method: 'post',
            data: {}
        }
    },
    
    // 根据课程获取所有资源
    getResources() {
        return {
            url: '/userCenter/courseService/getResources',
            method: 'post',
            data: {}
        }
    },

    // 添加考试资源 
    addTestResource() {
        return {
            url: '/userCenter/courseService/addTestResource',
            method: 'post',
            data: {}
        }
    },

    // 登录
    login() {
        return {
            url: '/userCenter/muserService/login',
            method: 'post',
            data: {}
        }
    },

    //  获取指定资源详细信息
    getResourceByCode() {
        return {
            url: '/userCenter/courseService/getResourceByCode',
            method: 'post',
            data: {}
        }
    },

    //更新考试资源
    updateTestResource() {
        return {
            url: '/userCenter/courseService/updateTestResource',
            method: 'post',
            data: {}
        }
    },
    // 批量导入学员 userCenter/userService/batchAdd
    batchAdd() {
        return {
            url: '/userCenter/userService/batchAdd',
            method: 'post',
            data: {}
        }
    },
    // 上架userCenter/courseService/onSaleCourse
    onSaleCourse() {
        return {
            url: '/userCenter/courseService/onSaleCourse',
            method: 'post',
            data: {}
        }
    },
      // 下架userCenter/courseService/offSaleCourse
      offSaleCourse() {
        return {
            url: '/userCenter/courseService/offSaleCourse',
            method: 'post',
            data: {}
        }
    },
    // 获取用户数据 userCenter/muserService/getMUsers
    getMUsers() {
        return {
            url: '/userCenter/muserService/getMUsers',
            method: 'post',
            data: {}
        }
    },
    // 删除用户数据 userCenter/muserService/delMUser
    delMUser() {
        return {
            url: '/userCenter/muserService/delMUser',
            method: 'post',
            data: {}
        }
    },
    // 新增用户数据 userCenter/muserService/addMUser
    addMUser() {
        return {
            url: '/userCenter/muserService/addMUser',
            method: 'post',
            data: {}
        }
    },
    // 更新课程类 userCenter/courseService/updCourse
    updCourse() {
        return {
            url: '/userCenter/courseService/updCourse',
            method: 'post',
            data: {}
        }
    }
};

const Api = ajaxInit(ALL_API) || {}

export default Api
